import React, { Component } from 'react';
import { BrowserRouter, Route, Switch, Redirect } from "react-router-dom";
import Login from './views/login/Login';
import Register from './views/register/Register';
import BossInfo from './views/boss-info/BossInfo';
import GeniusInfo from './views/genius-info/GeniusInfo';
import './App.css';


class App extends Component {
 
  
  render() {
    return (
      <div className="App">
        <BrowserRouter>
          <main>
            <Switch>
              <Route path="/" exact component={Login} />
              <Route path="/register" component={Register} />
              <Route path="/bossInfo" component={BossInfo} />
              <Route path="/geniusInfo" component={GeniusInfo} />
              <Redirect to="/" />
            </Switch>
          </main>
        </BrowserRouter>
      </div>
    );
  }
}
export default App